<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->post('auth/login', 'AuthController@postLogin');
    $router->post('/uploadFile', 'UploadController@uploadImg');
    $router->resource('articles', ArticleController::class);
    $router->resource('article-category', ArticleCategoryController::class);
    $router->resource('specialists', SpecialistController::class);
    $router->resource('banners', BannerController::class);
    $router->resource('appointments', AppointmentController::class);
    $router->resource('configs', ConfigController::class);

});
